package com.spddr.pmos.cxf.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import com.spddr.pmos.cxf.JaxrsOrganazation;
import com.spddr.pmos.jpa.Organization;
import com.spddr.pmos.jpa.TradeWay;
import com.spddr.pmos.repos.OrganizationRepos;

@Service
public class JaxrsOrganaizationmpl extends AbstractJaxrsObjectImpl<Organization> implements JaxrsOrganazation {
	@Autowired
	private OrganizationRepos organizationRepos;

	@Override
	public JpaRepository<Organization, Long> getRepository() {
		return organizationRepos;
	}

	@Override
	public List<Organization> children(long id) {
		return null;
//		return organizationRepos.findByPidId(id);
	}

}
